package homework_02;

import java.util.Scanner;

public class Home_03 {
    public static void main(String[] args) {
        System.out.println("请输入华氏温度：");
        Scanner input = new Scanner(System.in);
        int  a = input.nextInt();
        double b = (a-32)*5/9.0;
        System.out.println("对应的摄氏温度为："+b);
        System.out.println("请输入摄氏温度：");
        int c = input.nextInt();
        double d = c*9.0/5+32;
        System.out.println("对应的华氏温度为："+d);

    }
}
